/*
 * @userName: 湫之恋
 * @Author: Seven
 * @Date: 2020-07-01 17:17:04
 * @LastEditors: Seven
 * @LastEditTime: 2020-07-01 17:19:10
 */
var express = require('express')
var router = express.Router();

const {getOrder,delOrder,checkOrder} = require('../../service/order/orderServices')

//获取订单
router.get('/getOrderAll',async function(req,res,next){
  res.send(await getOrder(req.query))
})

//根据_id删除订单
router.post('/delOrder', async function (req, res, next) {
  res.send(await delOrder(req.body))
})

//根据_id修改订单
router.post('/checkOrder',async function(req,res,next){
  res.send(await checkOrder(req.body))
})

module.exports = router;